//
//  GuideCollectionViewCell.m
//  悦享
//
//  Created by 韩双 on 16/3/17.
//  Copyright © 2016年 张洪国. All rights reserved.
//

#import "GuideCollectionViewCell.h"

@implementation GuideCollectionViewCell


- (instancetype)initWithFrame:(CGRect)frame {
    
    self = [super initWithFrame:frame];
    if (self) {
        [self createView];
        self.backgroundColor = [UIColor whiteColor];
    }
    return self;
    
}


- (void)createView {
    
    self.titleLabel = [[UILabel alloc] init];
    [self.contentView addSubview:_titleLabel];
    
}

- (void)applyLayoutAttributes:(UICollectionViewLayoutAttributes *)layoutAttributes {
    
    self.titleLabel.frame = CGRectMake(0, 0, layoutAttributes.frame.size.width, layoutAttributes.frame.size.height);

    _titleLabel.textAlignment = NSTextAlignmentCenter;
    
}

@end











